System and method for presence detect and reset of a device coupled to an inter-integrated circuit router

ABSTRACT

Embodiments of the present invention provide a system and method for detecting if a device is coupled to an inter-integrated circuit (I2C) router and/or for resetting the device. The I2C router comprises a first I2C bus port having a presence line and/or a reset line. The I2C router further comprises a control logic coupled to and/or distributed within the first I2C bus port. The control logic may determine if a device is coupled to the I2C router as a function of a state of the presence line. The control logic may also determine if a reset condition exists. If a reset condition exists, the control logic changes the state of the reset line, thereby causing the device to reset itself.

FIELD OF THE INVENTION

Embodiments of the present invention relate to an inter-integratedcircuit bus, and more particularly to presence detect and reset ofdevices on a segregated inter-integrated circuit bus.

BACKGROUND OF THE INVENTION

Numerous electronic circuits and systems are utilized to perform usefultasks. In the performance of these tasks, the electronic circuits andsystems often communicate with one another via a communication bus. Onetype of communication bus is the inter-integrated circuit bus (I2C bus).The I2C bus provides a communication link between integrated circuits(ICs) and electronic systems. Traditionally, an I2C bus consists of twoactive wires referred to as the serial data line (SDA) and serial clockline (SCL).

Prior Art FIG. 1 is an illustration of I2C bus system 100 configured inan exemplary conventional arrangement wherein a management processor 110manages communication access on I2C bus 115. The I2C bus 115 comprisesan SCL line 112 and an SDA line 114 that provide bi-directionalcommunication paths which are coupled to modular field replaceable units(FRUs) 120, 121, and 122. Pull-up resistors 135 and 137 are coupled toSCL line 112 and SDA line 114 respectively to establish a default stateon each line. The FRUs can be a variety of components including a serverblade, a server card, a driver, a memory, or complex function IC. TheI2C bus can be used with an intelligent platform management interface(IPMI) or other I2C protocols.

Conventional I2C buses utilize a master-slave or master-mastercommunication protocol for transmitting packets (e.g., well definedblocks of data comprising a header, data and a trailer) between devicescoupled to the bus. Components (e.g., FRUs) coupled to the I2C bus havea unique address and can behave as a sender or receiver of data (e.g.,depending on specific functionality of the device). With IPMI, each“intelligent” device on the bus acts as a master and utilizes amaster-master communication protocol. A component (e.g., FRU 120),attempting to transmit information on the I2C bus while another master(e.g., the management processor) controls the bus, must adhere to thearbitration rules of I2C. Essentially, all devices that are attemptingto gain control of the bus must also monitor the bus and back off assoon as the signals do not match what the individual device isattempting to write. Because the bus is pulled high by pull-upresistors, and only driven low by active devices, the device driving lowwins control of the bus.

One major concern for communication systems is security maintenance.Preventing unintended and/or unauthorized entities from accessinginformation communicated on a bus is usually desirable. However,traditionally it is usually possible for unintended components to spoofcommunications on I2C busses. For example, communications on an I2C busin a common chassis (e.g., a host-client situation wherein slots arerented in a common chassis) intended for components utilized by a firstentity (e.g., a first company) can be received by another componentutilized by a second entity (e.g., a competing company). Morespecifically, it is possible for a device to “spoof” the I2C bus todeliberately receive data (e.g., a competitor's confidentialinformation) that was not destined for the particular “spoofing” device.

There are a number of issues that arise in maintenance of traditionalI2C bus systems. For example, if there is a bus failure on a segment ofan I2C bus, communications are typically lost to the components coupledto the bus even if the components are not on the segment that is lost.To provide proper maintenance it is usually beneficial to have a goodunderstanding of the type and number of devices coupled to an I2C busand traditionally this is manually performed which is labor intensiveand often inconvenient, especially if the components are remotelylocated. It is also usually difficult to discover errors in a system andprovide corrective directions. For example, it is traditionallydifficult to detect and remedy a situation in which one deviceeffectively “captures” the bus by becoming a master and continuouslytransmitting information to prevent others from using the bus.Capacitance characteristics of devices coupled to an I2C bus also oftencan make maintenance and reconfiguration difficult.

Components coupled to an I2C bus usually create a capacitive load on theI2C bus, which together with the pull-up resistors produce RC constantcharacteristics that impact attributes of signals communicated via theI2C bus. For example, signal waveforms can be altered and the ability ofcomponents to distinguish between logical ones and zeroes impacted. As aresult, it is desirable maintain an appropriate balance between thecapacitive and resistive characteristics of the I2C bus lines. However,maintaining a capacitive and resistive balance can be difficult whenadding or deleting components dynamically since the number and type ofcomponents on a bus impact the capacitive characteristics. Traditionalattempts at achieving a balance usually limited the number of componentscoupled to an I2C and often involve costly bus redesign, which if doneincorrectly can cause bus interrupts, or possibly catastrophic busfailure.

In current I2C bus systems, each component is assigned an I2C address.For example, with reference to FIG. 1, FRU 120, FRU 121 and FRU 122 eachhave an assigned I2C address. As described above, consider a situationwhere FRU 120 is operated by the first entity and FRU 121 is operated bythe second entity. If the second entity desires to access data beingtransmitted to FRU 120, FRU 121 may spoof current I2C bus systems intobelieving it is FRU 120 by using the I2C address of FRU 120.

The I2C bus according to the conventional art also suffers from theinability to detect the presence of a device (e.g., field replaceableunit) coupled thereto, the inability to determine if the device coupledthereto is functional and/or the inability to reset the device when anerror occurs. Furthermore, the I2C bus according to the conventional artalso suffers from the inability to provide for readily analyzing anddebugging data traffic on the I2C bus. The serial two-line I2C bus isdifficult to trap events on, because a serial data pattern must betrapped. In addition, it is also difficult to detect what device is thesource device; only the destination device address can readily betrapped.

SUMMARY OF THE INVENTION

Embodiments of the present invention provide a system and method fordetecting if a device (e.g., filed replaceable unit) is coupled to aninter-integrated circuit (I2C) router and/or for resetting the device.The I2C router comprises a first I2C bus port having a presence lineand/or a reset line. The I2C router further comprises a control logiccoupled to and/or distributed within the first I2C bus port. The controllogic may determine if a device is coupled to the I2C router as afunction of a state of the presence line. The control logic may alsodetermine if a reset condition exists. If a reset condition exists, thecontrol logic changes the state of the reset line, thereby causing thedevice to reset itself.

BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example and not by way oflimitation, in the figures of the accompanying drawings and in whichlike reference numerals refer to similar elements and in which:

Prior art FIG. 1 shows a block diagram of a conventionalinter-integrated circuit bus system according to the conventional art.

FIG. 2 shows a block diagram of an inter-integrated circuit bus systemcomprising an inter-integrated circuit router in accordance with anembodiment of the invention.

FIG. 3 shows a block diagram of an inter-integrated circuit router inaccordance with an embodiment of the invention.

FIG. 4 shows a flow diagram of a process for controlling communicationon an I2C router in accordance with an embodiment of the invention.

FIG. 5 shows a block diagram of an inter-integrated circuit router inaccordance with an embodiment of the invention.

FIG. 6A shows a flow diagram illustrating a process for securelycontrolling data communication at an inter-integrated circuit router inaccordance with an embodiment of the invention.

FIG. 6B shows a flow diagram illustrating a process for comparing adestination address to control information in accordance with anembodiment of the invention.

FIG. 7A shows an exemplary mask register settings in accordance with anembodiment of the invention.

FIG. 7B shows an exemplary comparison of control information anddestination addresses in accordance with an embodiment of the invention.

FIGS. 8A and 8B show a flow diagram of a method of transmitting datathrough an I2C router in accordance with an embodiment of the invention.

FIG. 9 shows a flow diagram of an alternative method of transmittingdata though an I2C router in accordance with an embodiment of theinvention.

FIGS. 10A and 10B show a flow diagram of a method of transmitting datathrough an I2C router in accordance with an embodiment of the invention.

FIG. 11 shows is a flow diagram of an alternative method of transmittingdata through an I2C router in accordance with an embodiment of theinvention.

FIG. 12 is block diagram of an inter-integrated circuit (I2C) routererror management system in accordance with one embodiment of the presentinvention.

FIG. 13 is a flow chart of an inter-connected router error managementmethod in accordance with one embodiment of the present invention.

FIG. 14 shows a data flow diagram of an exemplary inter-integratedcircuit router for supporting independent transmission rates inaccordance with an embodiment of the invention.

FIGS. 15A–C show flow diagrams illustrating processes for communicatingdata between ports of an inter-integrated circuit router in accordancewith embodiments of the invention.

FIG. 16 shows a block diagram of an I2C router, in accordance with anembodiment of the invention.

FIG. 17A shows a flow diagram of a method of detecting the presence of adevice coupled to an I2C router, in accordance with an embodiment of theinvention.

FIG. 17B shows a flow diagram of a method of resetting a device coupledto an I2C router, in accordance with an embodiment of the invention.

FIG. 18 shows a block diagram of an I2C router, in accordance with anembodiment of the invention.

FIG. 19 shows a flow diagram of a method of analyzing traffic in an I2Crouter, in accordance with an embodiment of the invention.

DETAILED DESCRIPTION OF THE INVENTION

Reference will now be made in detail to the embodiments of theinvention, examples of which are illustrated in the accompanyingdrawings. While the invention will be described in conjunction withthese embodiments, it will be understood that they are not intended tolimit the invention to these embodiments. On the contrary, the inventionis intended to cover alternatives, modifications and equivalents, whichmay be included within the spirit and scope of the invention as definedby the appended claims. Furthermore, in the following detaileddescription of the present invention, numerous specific details are setforth in order to provide a thorough understanding of the presentinvention. However, it is understood that the present invention may bepracticed without these specific details. In other instances, well-knownmethods, procedures, components, and circuits have not been described indetail as not to unnecessarily obscure aspects of the present invention.

Inter-Integrated Circuit Router

Referring now to FIG. 2, a block diagram of an inter-integrated circuit(I2C) router system 200, in accordance with an embodiment of theinvention, is shown. The exemplary I2C router system 200 comprises amanagement processor 201, an I2C router 250 and a plurality of fieldremovable units (FRUs) 220, 221 and 222. Management processor 201 iscoupled to I2C router 250 by high-speed external bus 240. The FRUs 220,221 and 223 are coupled to I2C router 250 by electrically isolated I2Cbus sections 241, 242 and 243, respectively. Each I2C bus section 241,242, and 243 comprises a SDA line and a SCL line. For example, SDA line261 and SCL line 271 of I2C bus section 241 communicatively couple FRU220 to I2C router 250, SDA 262 and SCL line 272 of I2C bus section 242communicatively couple FRU 221 to I2C router 250, and SDA line 263 andSCL line 273 of I2C bus section 243 communicatively couple FRU 222 toI2C router 250. Pull-up resistors (e.g., pull-up resistor 290) arecoupled to the SDA lines and the SCL lines (e.g., SCL line 273).

Exemplary I2C router 250 comprises high-speed external port 210,high-speed internal bus 281, I2C ports 253 a, 253 b, and 253 n. Itshould be appreciated that I2C router 250 may comprise any number ofports, and is not limited to this embodiment. High-speed internal bus281 is coupled to high-speed external port 210, and I2C ports 253 a, 253b, and 253 n. In one embodiment, each I2C port 253 a, 253 b and 253 nincludes a controller 257 a, 257 b and 257 n coupled to an electricalconnector 259 a, 259 b and 259 n respectively.

In one embodiment, the components of exemplary I2C router 250cooperatively operate to provide security for communications between I2Cbus sections (e.g., I2C bus sections 241, 242 and 243) coupled to I2Crouter 250 by controlling communications through the ports included inI2C router 250. The electrical connectors 259 a, 259 b and 259 ncommunicatively couple the respective I2C bus sections 241, 242 and 243to I2C router 250. In one exemplary implementation, each electricalconnector includes a serial data pin and a serial clock pin. Controllers257 a, 257 b and 257 n control data communication flow throughcorresponding electrical connectors 259 a, 259 b and 259 n and preventthe electrical connectors from gaining unauthorized access to data(e.g., data communicated on internal high speed bus 281). In oneembodiment of the invention, a controller can be a field programmablegate array, a microprocessor, etc.

Preventing the electrical connectors from gaining unauthorized access todata provides additional security for external components or devices(e.g., FRUs 220, 221 and 222) utilizing I2C router 250 to communicatewith each other. For example, controller 257 a prevents spoofing of dataoff internal high-speed bus 281 for communication through electricalconnectors 259 a and onto I2C bus 241. The inter-integrated circuitports can stop information from being communicated to an I2C bus sectionif a FRU coupled downstream of the inter-integrated circuit port is notauthorized to receive said information. Thus, an entity (e.g., acompany) or entities (e.g., a supplier and a purchaser) with control ofdevices (e.g., FRUs 220 and 222) coupled to respective bus sections(e.g., 241 and 243) can communicate information to each other withoutillicit spoofing of the information by unauthorized or unapprovedentities (e.g., a competitor) with control of a device (e.g., FRU 221)coupled to a separate bus section (e.g., 242). The unauthorized orunapproved entity can not receive the information illicitly because apresent invention controller (e.g., 257 b) prevents the information frombeing communicated via a corresponding electrical connector (e.g., 259b).

High-speed internal bus 281 provides an internal communication path forcomponents of I2C router 250. It is appreciated that high-speed internalbus 281 can be a parallel bus or any other high-speed bus compatiblewith various configurations of the invention. High-speed internal bus281 communicates information between each of the I2C ports 253 a, 253 band 253 n and also high-speed external port 210. The communication speedof high-speed internal bus 281 can be different than the externalcommunication speed of the respective ports. Optionally, ports 253 a,253 b, 253 n and/or 210 comprise a cache memory for bufferinginformation communicated on the respective port. The combination of thecaches and a high-speed internal bus allow multiple ports to communicateinformation to and from I2C router 250 simultaneously.

The size of a cache can be configured in accordance with a variety I2Crouter 250 implementations. For example, if I2C router 250 is used in aconfiguration utilizing an intelligent platform management interface(IPMI) protocol in which the IPMI limits packets to 32 bytes, the cachecan be sized as a multiple of the packet size (e.g., 64 bytes, 96 bytes,etc.). Additional flexibility can be achieved in embodiments of theinvention that utilize retry schemes and flow control schemes to helphandle overflow conditions. For example, when a cache associated with aparticular port reaches a predetermined capacity, a programmed overflowcontrol routine can interrupt the bus and allow the port to dump itsmemory to prevent errors.

In one embodiment of the invention, the inter-integrated circuit portsof I2C router 250 provide segmentation or separation of the I2C bussections 241, 242 and 243 from each other. The inter-integrated circuitports electrically isolate the I2C bus sections from each other. Forexample, ports 253 a, 253 b, and 253 n electrically isolate I2C bussections 241, 242 and 243 from each other. Electrically isolating theI2C buses facilitates hot swapping of devices (e.g., FRU 220, 2221, and223) coupled to the I2C bus sections. In one exemplary implementation,the electrical isolation of the I2C bus sections permit swapping of theFRUs without requiring changes to pull-up resistors (e.g., pull-upresistor 290) to accommodate a change in capacitance on the impacted I2Cbus section.

Furthermore, by electrically isolating devices on an I2C bus, theinvention beneficially provides each bus section coupled to I2C router250 greater flexibility with regard to the type and or number of devicescoupled to a bus section before reaching a capacitance limit (e.g., 400pF, I2C specification limits, etc.). Thus, overall capacitancelimitations are more flexible than if a conventional I2C bus were used.Segmenting and electrically isolating the I2C bus sections alsofacilitates preservation of I2C functionality even when a device (e.g. aFRU) coupled to one of the I2C bus sections fails. If a device (e.g.,FRU 221) coupled to one I2C bus section (e.g., I2C bus section 242)fails it does not preclude other devices (e.g., FRU 220 and 222) coupledto other I2C bus sections (e.g., 241 and 243) from communicating withone another.

In one embodiment of the invention, I2C router 250 is a packet-basedrouter wherein several bytes are read on a port at the same time (e.g.,waiting for an I2C STOP condition) and then transferred to another portin I2C router 250. Each port in I2C router 250 can recognize valid I2Ccommunication protocol behavior on coupled I2C buses (e.g., 241, 242 and243) and I2C router 250 can handle I2C hand shaking as appropriate. Inone exemplary implementation, I2C router 250 can permit devices coupledto different I2C ports to communicate with I2C router 250simultaneously, eliminating the traditional requirement that a devicenecessarily wait until the sections of an I2C bus are free. In oneembodiment, the FRUs or devices coupled to the ports of I2C router 250operate normally as they would on a conventional I2C bus and thepresence of the I2C router 250 is transparent to the FRUs or devices.

With reference still to FIG. 2, high-speed port 210 in I2C router 250can be coupled to external devices via high-speed external bus 240. Itis appreciated that the high-speed external bus 240 can be a parallelport bus, a high speed I2C bus, or any other high-speed bus. Again, I2Crouter 250 optionally comprises a buffer for caching data received fromanother port (e.g., I2C port 220, 221 and/or 222) and pumping the dataonto high speed external bus 240, thus allowing multiple devices coupledto I2C router 250 to communicate simultaneously.

In one embodiment of the invention, the electrical connectors 259 a, 259b and 259 n) are I2C bus couplers for communicatively coupling to I2Cbuses 241, 242 and 243 respectively. In one exemplary implementation,controller 351 is a port management component coupled to the I2C buscouplers via high-speed internal bus 375 (not 243). The port managementcomponent manages data communication flow through the I2C bus couplers,including preventing said I2C connector from illicitly accessing saiddata.

It will be appreciated that the invention is readily adaptable to avariety of implementations. In one embodiment, a controller (e.g., 257a) associated with a first port (e.g., 253 a) prevents information froma second port (e.g., 253 b) from being communicated via the first portto an electrical connector (e.g., 259 a) unless the information from thesecond port is addressed to the first port or an external device (e.g.,FRU 220) coupled to the first port. In yet another embodiment, acontroller (e.g., 257 a. 257 b, 257 n) also prevents an I2C port fromsending data to another I2C port.

Referring now to FIG. 3, a block diagram 300 of an inter-integratedcircuit (I2C) router 350, in accordance with an embodiment of theinvention, is shown. The I2C router 350 is similar to I2C router 250except I2C router 350 has a single controller 351 instead of acontroller in each of the ports 353 a, 353 b and 353 n. The I2C router350 comprises high-speed internal bus 375, controller 351, externalhigh-speed port 310, and I2C ports 253 a, 253 b, and 253 n. High-speedinternal bus 375 is coupled to controller 351, high-speed external port310, and I2C ports 253 a, 253 b, and 253 n. It is appreciated thathigh-speed internal bus 375 can be bi-directional. It is alsoappreciated that I2C router 350 can include any number of ports (e.g.,sixteen individual I2C ports). Controller 351 controls datacommunication flow through corresponding ports 353 a, 353 b and 353 nand prevent the ports from gaining unauthorized access to data (e.g.,data communicated on internal high seed bus 375). In one embodiment ofthe invention, a controller can be a field programmable array, amicroprocessor, etc.

Factors such as cost may influence the configuration of a router, suchthat a port may have its own controller therein or each port may share acentral controller, depending on cost objectives. In accordance withembodiments of the invention, a single unit, such as a fieldprogrammable gate array (FPGA), may be used control all of the ports ina router, wherein its general purpose input/output pins are used as I2Cbusses, thus creating I2C ports therein.

The invention is readily adaptable for use in a variety of I2C busconfigurations (e.g., a system compatible with the I2C specificationprovision for 127 addresses that can be written on a single I2C bus). Inone embodiment of the invention I2C router can block communications toport addresses in both directions (e.g., receiving data and transmittingdata) for any port on an I2C router. For example, suppose port 253 a isonly allowed to communicate with port 253 b and port 253 b is onlyallowed to communicate with port 253 a. Any packet from port 253 a toany other address (e.g., port 253 n) is not routed through I2C router250. Consequently, the number of I2C devices supported by the I2C router250 is increased to 127 times the number of ports on the router. Forexample, if I2C router 250 has 16 ports, the number of availableaddresses would be 2032, thus allowing up to 2032 devices to be coupledto a 16 port I2C router.

Referring now to FIG. 4, a flow diagram 400 of a process for controllingcommunication on an inter-integrated circuit (I2C) router, in accordancewith an embodiment of the invention, is shown. In accordance with anembodiment of the invention, the router controls communication betweenports by limiting the ability of ports to spoof information.

In step 410 data for communication on an I2C bus connection interface isreceived. In embodiment of the invention, an I2C bus connectioninterface is associated with an I2C connector address. A determinationis made if a destination address included in the data corresponds to theI2C connector address. For example, a received data packet is examinedand an origin address and a destination address are identified in theheader portion of the data packet. If the data corresponds to the I2Cconnector address an analysis is performed to analyze if the I2Cconnection interface is approved to communicate the data. In oneexemplary implementation the data is received from a server blade viaand I2C bus section. It is appreciated that data can be received on afirst bus connection interface of an I2C router (e.g., from a high-speedexternal bus, an external I2C bus, etc.), wherein the data is destinedfor a second bus connection interface included in the I2C router.

In step 420, the data is forwarded on the I2C bus connection interfaceif the I2C bus connection interface is approved for communicating thedata. In one embodiment of the invention, the data is forwarded via anI2C bus section to a device (e.g., a FRU).

In step 430, communication of the data on the I2C connection interfaceis prohibited if the I2C bus connector is not approved. Prohibitingcommunication on the I2C interface provides additional security forexternal components or devices (e.g., FRUs 220, 221 and 222 from FIG. 2)by preventing “spoofing” on the I2C bus.

In one embodiment of inter-integrated circuit (I2C) communicationcontrol method 400 the I2C bus connection interface is utilized todivide an I2C bus into different sections. For example, the I2C busconnection interface is utilized to electrically isolate a section of anI2C bus. In one exemplary implementation in which the I2C bus connectioninterface is utilized to divide an I2C bus into different section, hotswapping of a component coupled to the I2C bus connection interface ispermitted without changing pull-up resistance (e.g., pull-up resistor290 from FIG. 2).

Referring now to FIG. 5, a block diagram of an inter-integrated circuit(I2C) router, in accordance with embodiments of the invention, is shown.Router 570 comprises a high-speed port 510. High-speed port 510interfaces the router with high-speed external bus 540. It isappreciated that high-speed bus 540 can be a high-speed I2C bus, aparallel bus, or any other high speed bus known in the art. In oneembodiment in accordance with the invention, high-speed bus 540 is an 8wire parallel bus.

High-speed port 510 comprises control logic 515 for controllingcommunications on high-speed internal bus 575. Control logic is coupledto mask 530 wherein mask 530 provides control information to controllogic 515. High-speed port 510 also includes an optional buffer 520 forbuffering communications on high-speed internal bus 575. As statedabove, overflow routines and buffering schemes can be implemented bycontrol logic 515 to protect against errors resulting from dataoverflow. Optionally, high-speed port 510 comprises an error registerand a corresponding system event log. The error register tracks errorson the router and the system event log organizes the errors and canprovide reports.

Coupled to the high-speed internal bus 575 is a plurality of I2C ports.For clarity, FIG. 5 illustrates two I2C ports 550 and 560. Port 550comprises control logic 516 and a mask 531. Control logic 516 controlscommunication on port 550. Mask 531 provides control information tocontrol logic 516. It is appreciated that mask 531 can be programmedusing software or can be programmed manually with an I2C dual inlineplug (DIP) switch. Mask 531 provides port addresses for which port 550can send data. If the port tries to send data to an address not allowedin mask 531, the data will not enter router 570. It is appreciated thateach I2C port also includes an I2C controller for controlling I2Cprotocol. It is appreciated that Port 560 is configured similarly toPort 550 wherein port 560 comprises control logic 517, mask 532 and anoptional buffer 522. In accordance with embodiments of the invention,multiple ports on router 570 share central control logic and a centralmask. In a centralized configuration, a single processor and a singlemask can control communication on high-speed internal bus 574

Coupled to I2C port 550 and port 560 are SDA line 561, SCL line 571, SDAline 562 and SCL line 572, respectively, for providing a conventionalI2C bus connection for a device to couple thereto. Port 550 is coupledto I2C bus 541 and port 560 is coupled to I2C bus 542. In accordancewith an embodiment of the invention, I2C port 550 also includes anoptional detection line for detecting the presence of a device coupledthereto. Furthermore, an optional reset line is coupled to port 550 forresetting a non-responsive device coupled to the port. A reset line canprovide means to reset a device that is causing errors on router 570. Inone embodiment of the invention, high-speed port 510 comprises debuglogic wherein debug logic can toggle a reset line coupled to a deviceproducing errors on the router to reset the non-responsive device.

In accordance with embodiments of the invention, ports coupled to router570, for example ports 550 and 560, can communicate with router 570 atdifferent speeds. For example, a device coupled to port 550 may only becapable of communicating at 100 kb/s wherein port 560 may have a devicecoupled thereto that is capable of communicating at 1.4 mb/s. Internalhigh-speed bus 575 provides bandwidth such that devices coupled to I2Cports on router 570 to communicate at high-speeds.

As stated above, the invention uses control logic and an address mask toprovide security on an I2C bus by controlling communication on portsthat segment an I2C bus. Beneficially, devices coupled to the ports onthe router 570 operate normally as they would on a conventional I2C busand they are unaware of the router 570. Advantageously, the router 570electrically segments an I2C bus from one device to another andbeneficially, only packets aimed for a particular source on a particularport get forwarded to that port.

In addition to providing security on an I2C bus, the inventionelectrically isolates devices on an I2C bus to allow for hot swapping.As opposed to conventional I2C bus implementation wherein all devicesshare a single bus and are attached thereto, the inventionadvantageously electrically isolates devices coupled to the router.Thus, any failing device on the bus will not affect other devices onother ports. In addition, segmenting an I2C bus and electricallyisolating devices on the I2C bus allows for hot swapping of devices onthe I2C bus without requiring changes to pull-up resistors toaccommodate for a change in capacitance on the bus. Furthermore, byelectrically isolating devices on an I2C bus, the invention provideseach port on the router to approach the 400 pF capacitance limit of I2Cspecification. Thus, each segment or port can require less stringentcapacitance requirements than if a conventional I2C bus were used.

A Process for Securely Controlling Data Communication at anInter-Integrated Circuit Port

With reference to FIG. 5, in overview, embodiments of the inventionprovide a process for securely controlling data communication throughI2C router 570. In one embodiment, I2C router 570 comprises I2C port550, I2C port 560 and high-speed port 510. It should be appreciated thatI2C router 570 may comprise any number of I2C ports, and is not limitedby the embodiment illustrated in FIG. 5. For example, I2C router 570 maycomprise sixteen I2C ports. Each I2C port is coupled to high-speedinternal bus 575.

In one embodiment, each I2C port comprises a controller (e.g., controllogic 516 of I2C port 550 and control logic 517 of I2C port 560) and amask register (e.g., mask 531 of I2C port 550 and mask 532 of I2C port560). The controller is operable to control data communication throughthe I2C port based on control information provided by the mask register.In one embodiment, the mask register is stored within random accessmemory (e.g., RAM) of the controller (e.g., control logic 516). Thecontrol information designates data communication that is permitted tobe transmitted through the I2C port. In one embodiment, the controlinformation designates an I2C address to which data can be transmittedthrough the I2C port.

In one embodiment, I2C router 570 comprises logical circuitry to comparean address to the control information. In one embodiment, the logicalcircuitry comprises an exclusive-OR (XOR) and AND logic circuit forcomparing an address to the control information. The XOR and AND logiccircuit may be comprised within control logic (e.g., control logic 515,516 and 517).

In one embodiment, I2C router 570 comprises a port identification tag(PIT) register. Once an I2C port, or a set of I2C ports, is identifiedas being a recipient of a particular data communication, an accessvalidation is indicated in the PIT register. In one embodiment, the PITregister is stored within RAM of the controller (e.g., control logic516). It should be appreciated that the PIT register comprises at leastas many bits as there are ports in I2C router 570. An access validationis indicated as a ‘1’ in the PIT register.

Referring now to FIG. 6A, a flow diagram of a computer implementedprocess 600 for securely controlling data communication at aninter-integrated circuit (I2C) port in accordance with an embodiment ofthe invention, is shown. In one embodiment in accordance with theinvention, process 600 is performed at an inter-integrated circuit port(e.g., I2C port 550 of FIG. 5). Although specific blocks are disclosedin process 600, such blocks are exemplary. That is, the embodiments inaccordance with the invention are well suited to performing variousother blocks or variations of the blocks recited in FIG. 6A.

At step 610 of process 600, data is received at an I2C port of an I2Crouter (e.g., I2C router 570 of FIG. 5), wherein the data comprises adestination address. In one embodiment, the data is a data packetcomprising a header and a payload. The destination address is comprisedwithin the header. To securely control data communication through theI2C port, and to prevent address spoofing, destination address must bevalidated at the I2C port. In one embodiment, the destination address isone byte.

At step 620, control information of the I2C port is accessed. Asdescribed above, the control information designates whether dataintended for a particular destination address is permitted to betransmitted through a particular I2C port. In one embodiment, thecontrol information comprises an I2C address. In another embodiment, thecontrol information comprises a range of I2C addresses.

In one embodiment, the control information is stored within a maskregister (e.g., mask 531 of FIG. 5). In one embodiment, the maskregister is stored within random access memory (e.g., RAM) of thecontroller (e.g., control logic 516). The mask register is set to allowcommunications through an I2C port or through a range of I2C ports. Inone embodiment, the mask register of an I2C port is set to a single I2Caddress. In another embodiment, the mask register of an I2C port is setto a range of I2C address.

It should be appreciated that a mask register can comprise any number ofbytes for storing any number of I2C addresses. In one embodiment, mask530 of high speed port 510 is set to allow communications to address 20h(hexadecimal notation). The mask registers of other I2C ports of I2Crouter 570 may initially be set to a single I2C address. The maskregisters can be managed to account for personalized settings forstoring multiple I2C addresses.

In one embodiment, the mask register is one byte for storing a singleI2C address. In another embodiment, the mask register is two bytes forstoring a range of I2C addresses. FIG. 7A illustrates exemplary maskregister settings 700 and 710 of a two byte mask register in accordancewith embodiments of the invention.

The mask registers as depicted in FIG. 7A comprise two registers, a DoNot Care register and an Address register. The Address register is forindicating an I2C address. The Do Not Care register is for indicatingthe bits of the Address register are used for indicating an allowabledestination address. Each ‘1’ in the Do Not Care register indicates abit that is used and each ‘0’ in the Do Not Care register indicates abit that is not used. The Do Not Care register and the Address registerare operable to provide a single I2C address or a range of I2Caddresses.

Mask register setting 700 illustrates an exemplary mask setting forallowing a destination address of 20h. As shown, the Do Not Careregister is set to 1111 1110 (binary notation) and the Address registeris set to 0010 0000b. Since every bit of the Do Not Care register exceptthe last is set to 1, every bit of the Address register is used todetermine the allowed destination address. Therefore, the only allowedaddresses are 0010 000xb (20h and 21h). It should be appreciated thatonly the first seven bits of address space are used. The last bit of thebyte determines whether the access is read/write.

Mask register setting 710 illustrates an exemplary mask setting forallowing destination addresses 20h–27h. As shown, the Do Not Careregister is set to 1111 1000b (F8h) and the Address register is set to0010 0000b. Since the last three bits if the Do Not Care register areset to 0, an allowed destination address may be 0010 0xxxb, where x maybe a 1 or a 0. Therefore, the allowed addresses are in the range of20h–27h. As with mask register setting 700, only the first seven bits ofaddress space are used. The last bit of the byte determines whether theaccess is read/write.

With reference to FIG. 6A, at step 630, the destination address iscompared to the control information. The control information indicateswhether the destination address is allowed for transmission through theI2C port.

Referring now to FIG. 6B, a flow diagram of a process 630 for comparinga destination address to control information, in accordance with anembodiment of the invention, is shown. In one embodiment in accordancewith the invention, process 630 is performed at an inter-integratedcircuit port (e.g., I2C port 550 of FIG. 5). Although specific blocksare disclosed in process 630, such blocks are exemplary. That is, theembodiments in accordance with the invention are well suited toperforming various other blocks or variations of the blocks recited inFIG. 6B.

At step 632 of process 630, a logical exclusive-OR (XOR) operation ofthe destination address and the Address register is performed. Each bitof the destination address and the Address register are compared. If thebits do not match, a ‘1’ is returned. Alternatively, if the bits domatch, a ‘0’ is returned.

At step 634, a logical AND operation of the result of the XOR operationand the Do Not Care register is performed. Each bit of the result of theXOR operation and the Do Not Care register are compared. If either ofthe bits is ‘0’, a ‘0’ is returned. Alternatively, if neither of thebits is ‘0’, a ‘1’ is returned.

At step 636, it is determined whether the logical AND operation returnsa value of zero (e.g., 00h or 0000 0000b). A value of zero indicatesthat the destination address matches the control information stored inthe mask register. A match indicates that the destination address isacceptable for transmitting data through the I2C port.

FIG. 7B illustrates exemplary comparisons 720 and 730 of controlinformation and destination addresses in accordance with embodiments ofthe invention. Both comparisons 720 and 730 are based on a mask registersetting as indicated in mask register setting 710 of FIG. 7A, whereinallowed addresses are in the range of 20h–27h.

Comparison 720 illustrates an exemplary comparison where the destinationaddress is 24h. As described at step 632 of FIG. 6B, a logical XORoperation is performed on the destination address (24h) and the Addressregister (20h), returning a result of 04h. A logical AND operation isthen performed on the result of the XOR operation (04h) and the Do NotCare register (F8h), as described at step 634 of FIG. 6B. The logicalAND operation results in 00h, indicating a destination address thatpermits transmission through the I2C port.

Comparison 730 illustrates an exemplary comparison where the destinationaddress is 28h. A logical XOR operation performed on the destinationaddress (28h) and the Address register (20h) returns a result of 08h. Alogical AND operation performed on the result of the XOR operation (08h)and the Do Not Care register (F8h) returns a result of 08h. Because theresult of the logical AND operation results in a value that is not 00h,the destination address is not permitted for transmission through theI2C port.

With reference to FIG. 6B, provided the logical AND operation returns avalue of zero, as shown at step 638, transmission through the I2C portis permitted. Process 630 then proceeds to step 640 of process 600 ofFIG. 6A. Alternatively, provided the logical AND operation returns avalue other than zero, as shown at step 639, transmission through theI2C port is not permitted. Process 630 then proceeds to step 640 ofprocess 600 of FIG. 6A.

At step 640 of FIG. 6A, it is determined whether transmission throughthe I2C port is permitted. In one embodiment, the determination is basedon the results of comparing the destination address to the controlinformation as described at process 630 of FIG. 6B. It should beappreciated that any comparison may be used to compare the destinationaddress to the control information, and the invention is not limited tothe embodiment described at process 630 of FIG. 6B. For example, if themask register is one byte for storing one address, an XOR operation canbe performed on the mask register and the destination address, where aresult of 00h indicates an allowable destination address.

Provided transmission through the I2C port is permitted, as shown atstep 650, the data is transmitted through the I2C port. Process 600 thenproceeds to step 670. Alternatively, provided transmission through theI2C port is not permitted, as shown at step 660, the data is ignored bythe I2C port.

At step 670, it is indicated in a PIT register of the I2C router thatthe destination address corresponds to the I2C port. In one embodiment,a ‘1’ is indicated in the bit corresponding to the I2C port in the PITregister.

Accordingly, embodiments of the invention provide a process for securelycontrolling data communication at an I2C router. By using a maskregister of an I2C port, it is possible to prevent unintended and/orunauthorized entities for accessing information communicated across abus. Each port is assigned an address, and only information intended fora particular address can be transmitted through the port. Furthermore,it is not possible for a device to spoof the bus to deliberately receiveunauthorized data due to the mask register.

Method of Transmitting Data Through an I2C Router

Referring again to FIG. 5, in overview, embodiments of the inventionprovides for a novel method of transmitting data through an I2C router570 that avoids buffer-overflow. In one embodiment of the invention I2Crouter 570 comprises a first I2C source port buffer 522, an I2Cdestination port 550 coupled to the first I2C source buffer 522 via highspeed internal bus 575, and a second I2C source port buffer (not shownbut similar to buffers 521 and 522) also coupled to I2C destination port550 via high speed internal bus 575. Each buffer in router 570 isassociated with a port in the router 570 (e.g., first I2C source buffer522 is associated with I2C port 560) and ports in the router are incommunication with each other through an internal bus (e.g. high speedbus 575).

In one embodiment, data to be transmitted from the first I2C port 560 tothe I2C destination 550 port is received at the first I2C port buffer522. On receiving data in the first I2C source port buffer 522, therouter 570 is operable to capture the I2C destination port 550 beforethe first I2C source port buffer 522 has overflowed. On capturingdestination port 550, the router is operable to transmit data from thefirst I2C source port buffer 522 to the I2C destination port 550, whilerestricting transmission from other source port buffers (not shown) todestination port 550. Thus with the invention, router 570 is operable asa router/hub for transmitting data between ports; similarly, router 570is operable as a multi bus hub for secure transmission between ports.

For more detail description of this embodiment of the invention, FIG. 5is now referenced in conjunction with flowchart 800 of FIGS. 8A and 8Band flowchart 900 of FIG. 9. Although specific steps of this embodimentof the invention are disclosed in flowcharts 800, 900, such steps areexemplary. That is, embodiments of the invention can be performed byvarious other steps or steps equivalent to those steps recited inflowcharts 800, 900. Also, steps in flowcharts 800, 900 may be performedin an order different than presented, and not all of the steps inflowcharts 800, 900 may be performed. All of, or a portion of, themethod described by flowcharts 800, 900 may be implemented usingcomputer-readable and computer-executable instructions which reside, forexample, in computer-usable media of a computer system or like device.In one embodiment, the steps of flowcharts 800, 900 can be implementedby exemplary router 570 of FIG. 5.

Referring now to FIGS. 8A and 8B, a flow diagram 800 of a method oftransmitting data through an inter-integrated circuit (I2C) router(e.g., router 570 of FIG. 5), in accordance with one embodiment of theinvention, is shown. The method starts at step 801 when router 570becomes aware that a source port (e.g. source port 560) has received newdata representing the beginning of a I2C data packet from a transmittingdevice (not shown) connected to source port 560 through SDA 562 and SLC572, for transmission to a destination port (e.g. destination port 550on the router 570).

In step 802, the data packet is received and read at source port 560. Instep 803, the data is checked to determine whether, or if, the packetshould be routed to a port another than port 560. In an IC2transmission, the first byte of a data packet contains the destinationaddress of the packet. In checking whether the data packet should berouted to another port, router 570 looks at this byte to determinewhich, if any, destination ports is to receive the packet.

In step 804, if the packet is not to be routed to another port, thepacket is ignored and the method ends at step 805. If in step 804 router570 has determined that the packet should be routed to another port(e.g. to port 550), then in step 806 the data is validated by router 570for routing to destination port 550 by comparing router mask 532 datawith destination port 550 address.

In step 807 if the data is not validated by mask 532, the data isignored in step 808. If, however, in step 807, the data is validated forrouting to destination port 550, the router 570, in step 809, queues thedata into buffer 522 of source port 560 until router 570 has receivedconfirmation that destination port 550 is ready to receive incoming datafrom source port 560.

While the incoming data is being queued in buffer 522, in step 810,router 570 controls destination port 550 by using control lines (notshown) attached to port 550 and monitoring the necessary registersdesignated (not shown) for destination port 550.

In step 811, if it has been determined that destination port 550 I2C iscurrently available, then router 570 sends the data from source portbuffer 522 to destination port 550 via high speed internal bus 575,where, at steps 818, 819 and 820, the data can be streamed withremaining data in buffer 522 to the destination port 550 via high speedbus 575.

If, however, in step 811 it is determined that the destination port 550is currently busy, the data continues to be stored in source port buffer522 as it is being received at the source port 560. In step 812 of FIG.8B, router 570 checks source port buffer 522 by polling to determinewhether a predetermined point (e.g., the halfway point) has been reachedin source port buffer 522. Alternatively, the source port bufferinitiates an interrupt to the router when the buffer has reached itspredetermined point. In step 813, router 570 polls the destination port550 register for availability, and also negotiates control ofdestination port 550. As long as source port buffer 522 capacity isstill below the predetermined point, router 570 continues to queue datainto source buffer 522 and continue to negotiate for control ofdestination port 550.

In step 814, if destination port 550 remains busy for a long time afterdata has been received at source port buffer 522, and the source portbuffer 522 capacity has reached the predetermined point (e.g. thehalfway point), router 570 takes one of the following two actions tocapture destination port 550 before buffer 522 has overflowed:

a) In step 816, the router 570 holds other ports currently attempting tocommunicate with destination port 550 busy, and transmit data from firstport buffer 522 until the data in source port buffer 522 has beentransmitted to destination port 550. This is accomplished by the router570 asserting logic low on all SDA and SCL lines other than destinationport 550 SDA and SCL lines.

b) Alternatively, in step 817, router 570 breaks into destination port550 by sending bytes of 0's to ports transmitting on high speed internalbus 575. Under the I2C protocol, when a transmitting port recognizesthat it is receiving bytes of 0's data on its own port, it halts itsinitial transmission and attempt to resend the transmission. Inaccordance with the invention, it is in between the time of the halt andthe resending of the initial data at ports other than source port 560that router 570 breaks into and win negotiation of destination port 550.It should be noted that when router 570 initiates action to capturedestination port 550, if the destination port 550 is not busy, therouter 570 obtains control of destination port 550 and starts sendingout data to destination port 550 (e.g., at a rate as fast as source portbuffer 522 is being filled).

Router 570 continues with either of these two actions until it capturesdestination port 550 at steps 816, 817 or until source port buffer 522has overflowed its capacity. Upon capturing destination port 550, therouter 570, in steps 818, 819 and 820 transmits data from source port560 to destination port 550 until the data at source port 560 intendedfor destination port 550 is transmitted. If router 570 fails to capturedestination port 550 and source port buffer 522 overflows, the methodterminates at step 815 with the consequent loss of data at source port560.

In this embodiment of the invention, the likelihood that source portbuffer 522 overflows is reduced by designing source buffer 522 to have acapacity of twice the size of a packet length, and by initiatingcapturing of the destination port 550 before the source port buffer 522has overflowed, at step 814, when source port buffer 522 has reached apredetermined point (e.g., the half way point) of its capacity. Thus,for example if the packet length is 32 bytes and the capacity of sourceport buffer 522 is 64 bytes, the action to capture destination port 550commences when source port buffer 522 is at 32 bytes. Under theseconditions, source port buffer 522 should not overflow. It should benoted that other design ratios for packet length to buffer capacity canbe used in this embodiment of the invention.

Referring now to FIG. 9, a flow diagram of an alternative method oftransmitting data through an inter-integrated circuit (I2C) router, inaccordance with an embodiment of the invention, is shown. The method oftransmitting data through the I2C router 900 comprises, in step 901,receiving data in the first source port buffer 522 of router 570. Instep 902, the router 570 is operable to capture destination port 550before the first source port buffer 522 has overflowed. In step 903, therouter 570 is operable to transmit data from first source port buffer522 to the destination port 550 while restricting transmission fromother source port buffers (not shown) to the destination port 550.

For ease of explanation, the above embodiments describe the invention interms of communication between a first and second I2C port. However, itis appreciated that the method of buffering data can comprisecommunications between an I2C port and an external high speed port andbetween an I2C port and a plurality of I2C ports.

Method of Overflow Recovery of I2C Packets on an I2C Router

Referring again to FIG. 5, in overview, embodiments of the inventionalso provide for a novel method of transmitting data through an I2Crouter 570 wherein a source port buffer, e.g., buffer 522 hasoverflowed. In this embodiment of the invention router 570 comprises afirst I2C source buffer 522, an I2C destination port 550 coupled to thefirst I2C source buffer 522 via high speed internal bus 575, and asecond I2C source port buffer (not shown but similar to buffers 521 and522) also coupled to I2C destination port 550 via high speed internalbus 575. Each buffer e.g. 521, 522 in router 570 is associated with aport e.g. 550, 560 in the router 570, e.g., first I2C source buffer 522is associated with I2C port 560; and, ports in the router are incommunication with each other through an internal bus, e.g. high speedbus 575.

In an embodiment wherein data at a source port has overflowed thebuffer, e.g. the first I2C source port buffer 522 has overflowed, router570 is operable to request resend of the overflowed data to first I2Csource port buffer 522. On requesting the resending of the data tosource buffer 522, router 570 is operable to hold other ports currentlyattempting to transmit to the destination port 550, or presentlytransmitting to the destination port 50, busy. Alternatively, the router570 is operable to break into the I2C destination port 550. In eitherevent, on succeeding in accessing the I2C destination port, the routeris operable to resend the recovered data from the source port buffer 522to the destination port 550 while restricting transmission from othersource port buffers (not shown) to destination port 550. Thus with theinvention, router 570 is operable as a router/hub for transmitting databetween ports; similarly, router 570 is operable as a multi bus hub forsecure transmission between ports.

FIG. 5 is now referenced in conjunction with flowchart 1000 of FIGS. 10Aand 10B and flowchart 1100 of FIG. 11 to describe in more detail thisembodiment of the invention. Although specific steps of this embodimentof the invention are disclosed in the flowcharts 1000, 1100, such stepsare exemplary. That is, embodiments of the invention can be performed byvarious other steps or steps equivalent to those steps recited inflowchart 1000, 1100. Also, steps in flowchart 1000, 1100 may beperformed in an order different than presented, and not all of the stepsin flowchart 1000, 1100 may be performed. All of, or a portion of, themethod described by flowchart 1000, 1100 may be implemented usingcomputer-readable and computer-executable instructions which reside, forexample, in computer-usable media of a computer system or like device.In one embodiment, the steps of flowcharts 1000, 1100 can be implementedby exemplary router 570 of FIGS. 3 and 5.

Referring now to FIGS. 10A and 10B, a flow diagram 1000 of a method oftransmitting data through an inter-integrated circuit (I2C) router 570,in accordance with an embodiment of the invention, is shown. The methodstarts at step 1001 when the router 570 receives information that asource port (e.g. source port 560) has received new data representingthe beginning of a packet from a transmitting device on the source port560, for transmission to a destination port, (e.g., destination port550).

In step 1002, the data is read and in step 1003, the data is checked todetermine whether, or if, the packet should be routed to another port.In an IC2 transmission, the first byte of a packet contains thedestination address of the packet. In checking whether the data shouldbe routed, the router 570 looks at this byte to determine which, if any,destination ports, e.g. port 550 is to receive the packet.

In step 1004, if the packet is not to be routed, the packet is ignoredand the method ends at step 1005. If in step 1004 the router 570 hasdetermined that the packet should be routed, then in step 1006 the datais validated for transmission to the destination port 550 by comparingthe router masking data 532 with the destination port address.

In step 1007 if the data is not validated by the mask 532, the data isignored in step 1008. If, however, in step 1007, the data is validatedfor routing to a destination port 550, the router 570, in step 1009,queues the data into the buffer 522 at source port 560 until the router570 has received confirmation that the destination port 550 is ready toreceive incoming data from the source port 560.

While the data is being queued in the buffer 522, in step 1010, therouter 570 controls the destination port 550 by using control linesattached to the port (not shown) and monitoring the necessary registersdesignated for the destination port 550.

In step 1011, if it has been determined that the destination port 550 iscurrently available and that buffer 522 has not overflowed, the router570 sends the data from the source port buffer 522 to the destinationport 550, where, at steps 1016, 1017 and 418, the data is streamed withremaining data in the buffer 522 to the destination port 550.

If, in step 1011 and then in step 1012 of FIG. 10B it is determined thatthe destination port 550 is currently busy but the buffer 522 has notoverflowed, the data continues to be stored in the buffer 522 as it isbeing received, and the router 570 continues to negotiate control of thedestination port 550.

If in step 1012 it is determined that the buffer 522 has overflowed, therouter 570, in step 1013 requests a resend of data from the source portI2C bus and re-start step 1002 for this data. In step 1013, the router570 takes one of the following two actions to capture the destinationport 550:

a) In step 1014, the router 570 holds ports currently attempting tocommunicate with the destination port 550 busy until the initial data inthe buffer 522 has been transmitted to the destination port 550. This isaccomplished by the router 570 asserting logic low on all SDA and SCLlines other than the destination port 550.

b) Alternatively, in step 1015, the router 570 breaks into thedestination port 550 by sending bytes of 0's to the transmitting ports.Under the I2C protocol, when a transmitting port recognizes that it isreceiving bytes of 0's data on its own port, it halts its initialtransmission and attempt to resend the transmission. It is in betweenthe time of the halt and the resending of the initial data that therouter 570 breaks into and win negotiation of the destination port 550.It should be noted that when the router 570 initiates action to capturethe destination port 550, if the destination port 550 is not busy, therouter 570 controls the destination port 550 and start sending out dataat a rate as fast as the buffer 522 is being filled.

The router 570 continues with either of these two actions until itcaptures the destination port 550 at which point in step 1016, therouter 570 feeds data from the source port 560 to the destination port550 until the data is transmitted at step 1017. As data is being fed tothe destination port 550, the router 570 keeps other ports busy withstretched low on the SCL and SDA lines until transmission of the packetscompletes successfully. Thereafter, the router 570 returns to normaloperation.

Referring now to FIG. 11, a flow diagram 1100 an alternative method oftransmitting data through an inter-integrated circuit (I2C) router, inaccordance with an embodiment of the invention, is shown. At step 1101,overflowed data is resent to a first I2C source port buffer, the I2Crouter further comprising and a I2C destination port and a second I2Csource port buffer. At step 1102, the overflowed data is received at thefirst I2C source port buffer. At step 1103, the I2C destination port iscaptured. At step 1104, data from the first I2C source port buffer istransmitted to the I2C destination port.

With the invention, a router is capable of functioning at speeds in theMHz range and the transmission from the source port to the destinationport can be transparent under open, non-busy conditions. Further, withthe invention, if a buffer overflows the data can be recovered forre-transmission to the destination port. Also, with the invention, sincethe router can track transmitted data and negotiate for a bus, therouter can be operated as a multi-bus data hub with secure transmissionto each port by limiting access to designated ports.

For ease of explanation, the above embodiments describe the invention interms of communication between a first and second I2C port. However, itis appreciated that the method of overflow recovery of I2C packets cancomprise communications between an I2C port and an external high speedport and between an I2C port and a plurality of I2C ports.

An Inter-Integrated Circuit Router Error Management System and Method

FIG. 12 is block diagram of inter-integrated circuit (I2C) router errormanagement system 1200 in accordance with one embodiment of the presentinvention. I2C router error management system 1200 comprises internalbus 1215, high speed port 1220, debug connector 1230 and I2 Cports 1250and 1270. Internal bus 1215 communicatively couples high speed port1220, debug connector 1230 and I2C ports 1250 and 1270 (e.g., similar toother internal buses of the present invention 281, 375, 1810, etc.).High speed external port 1220 provides a high speed interface frominternal bus 1215 and high speed external bus 1221 (e.g., similar tohigh speed external ports 210, 310, 1815, etc.). Debug connector 1230provides an interface from the components of I2C router system 1200 toan external debugging mechanism. I2C ports 1250 and 1270 provides aninterface between external I2C buses 1213 and 1217 respectively.

I2C ports 1250 and 1270 are similar to other I2C ports described herein(e.g., 253 a, 550, 1625, etc.) and also include error managementfeatures. For example, I2C port 1250 comprises control logic 1251, mask1252, buffer 1255, parallel to serial bus interface 1290, error register1253 and system event log 1257. Control logic 1251 controls informationflow through I2C port 1250 (e.g., similar to control logic 257 a, 517,1640, etc.). Mask 1252 provides control information to control logic1251 (e.g., in accordance with method 600 and/or settings shown in FIGS.7A and 7B, etc.). Buffer 1255 buffers information communicated via I2Cport 1250. In one exemplary implementation, buffer 1255 can bufferinformation in accordance with method 800, 900, 1000 or 1100. Parallelto serial bus interface 1290 provides an interface between internalparallel communications of I2C port 1250 and external serial I2C buscommunications. Error register 1253 tracks (e.g., stores) indications oferrors (e.g., associated with a data flow of information through I2Cport 1250 and controlled control logic 1251). Event system log 1257 logserror information and statistics in a coordinated and correlated manner.

I2C ports 1250 and 1270 provide an interface to communicate I2C signalson bus 1213 and 1217 respectively to internal bus 1215 and vise versa.Present invention I2C bus 1213 includes SDA line 1201, SCL line 1202,presence detect line 1203 and reset line 1204. Present invention I2C bus1217 includes SDA line 1207, SCL line 1208, presence detect line 1209and reset line 1210. Presence detect lines 1203 and 1209 indicate thepresence of a component communicatively coupled to bus 1213 and 1217respectively (e.g., similar to lines 1660 and 1665). Reset lines 1204and 1210 are utilized to communicate reset indications to componentscommunicatively coupled to busses 1213 and 1217 respectively.

With continued reference to FIG. 12, error register 1253 can captureerror information in communication operations in a variety of differentways. Error register 1253 can utilize flags 153A and 153B to captureindications of an error (e.g., particular bits included in errorregister 1253 are set to a predetermined logical value to indicate theexistence of a type of error). Error register 1253 can include a failedport register or flag that is set if an I2C port fails. The register canalso start a secondary state machine that executes a process to regaincontrol of a failed port and monitor the port for recovery. Thesecondary state machine can be included in I2C router system 1200 (e.g.,included in parallel to serial bus interface 1290) or can be independentof the I2C router system 1200. Remaining non-err ports of I2C routersystem 1200 continue to pass data properly with no effect from thefailed port or the secondary state machine. If a non-err I2C routersystem 1200 port attempts to communicate with an “isolated” failed port,a transmitting port is signaled that at least a portion of thecommunication is not completed. In one exemplary implementation, errorregister 1253 maintains an error count. For example, error register 1253can track error counts by incrementing a value included in an errorregister flag each time an error event associated with the flag isdetected.

Error register 1253 is flexibly adaptable for implementation with avariety of error management policies directed to capturing indicationsof and recovering from numerous different errors. In one embodiment,error register 1253 can capture an indication of a failed port conditionand participate in recovery from the error. For example, a failed portcondition can be recognized by an indication of the number of times thatparallel to serial bus interface 1290 attempts to reset its own ports inorder to gain control of SCL line 1202 and SDA line 1201. Alternatively,a failed port condition can be recognized by an indication of the numberof times that I2C router system 1200 attempts and fails to take controlof an I2C port suspected of failing. An error register 1253 can also beutilized to capture and recover from a buffer problem (e.g., a bufferoverflow). For example, an error register can be utilized to detect longtransmission packets that exceed the buffering capabilities of buffer1255. Present invention error management policies can also be directedto minimizing the likelihood of detrimental bus monopolization by aparticular I2C port.

I2C router system 1200 also includes error recovery mechanisms andfeatures to facilitate recovery from an error condition. In oneembodiment, when an I2C port is considered “lost” (e.g., a fatal erroror errors have occurred on the I2C port), I2C router system can preventdata from passing to or from the lost I2C port. A failed I2C port isisolated from the data transfer portion of I2C router system 1200 (e.g.,internal bus 1215). In one exemplary implementation, I2C router system1200 includes a fault light which is activated to indicate an I2C routeris not functioning properly (e.g., is “lost”).

With reference still to FIG. 12, parallel to serial bus interface 1290can be utilized to provide an indication of errors to error register1253. In one exemplary implementation, time out register 1291 can beutilized to provide indications of errors. A maximum time out value isset in time out register 1291. The maximum time out value is the maximumtime that an SCL line (e.g., SCL 1202) is held low before a reset isinitiated (e.g., via reset line 1204). The SCL can be held low for avariety of reasons, including long negotiations, missing stop bit,and/or hung bus. The time out feature starts when the SCL goes low andis reset when the SCL line goes high. If the SCL line stays low for atime period equal to or longer that the time out value I2C router system1200 concludes a bus error has occurred. Parallel to serial businterface 1290 loads an indication or status code in status register1293 that the SCL line is stuck low and generates an interrupt signalthat attempts to release SCL line 1202 and SDA line 1201. Control logic1251 can poll the status register 1293 and monitor the interrupt signalline to determine the error event occurred. Control logic 1252 canrespond by incrementing an I2C bus error counter value by 1 and settinga port error LED to distinguish the failed port from a non-failed port.

Other I2C “health” indicators or error counters can be implementedutilizing other functions in parallel serial bus interface 1290. In oneexemplary implementation, when a missing stop bit occurs parallel toserial bus interface 1290 can load a status code that indicates a buserror occurrence during serial transfer. A bus error can be caused bythe occurrence of start or stop condition at an incorrect (“illegal”)position in a format frame or an external interface interferes withparallel to serial bus interface. For example, a data bit or acknowledgebit is transmitted in an address byte. When an error occurs an interruptis set (e.g., including setting a serial interrupt flag). Control logic1251 can again poll the status register 1293 and increment a missingstop bit error count by 1 if a missing stop bit error occurred.

FIG. 13 is a flow chart of inter-integrated connected (I2C) router errormanagement method 1300, an inter-connected router error managementmethod in accordance with one embodiment of the present invention. I2Crouter error management method 1300 tracks, tabulates and recovers fromerror issues. Inter-integrated connected (I2C) router error managementmethod increases the robustness and dependability of an I2C routersystem.

In step 1310, communication activities on an I2C router are monitored.For example, the communications traffic flow characteristics of a portare examined. The amount of time an I2C port captures an internal buscan be examined or the amount of information communicated by an I2C portin one packet can be examined. In one exemplary implementation, buffer(e.g., buffer 1255) overflows are monitored.

Errors associated with the communications activities are captured instep 1320. In one embodiment, errors identified in step 1310 aretracked. For example, a count of the particular types of erroroccurrences is maintained. In one exemplary implementation, errorindications are logged in coordinated and correlated manner. Indicationsof errors can be communicated to a debugging system for extendeddebugging analysis.

In step 1330 actions are executed to recover from the errors. In oneembodiment of the present invention, the recovery action includespausing the I2C communication activity associated with an error. Forexample, pausing communication of a long transmission packet via anaffected port until the large packet can be sent directly to itsdestination port with the use of a buffer. In one exemplaryimplementation, the communication is paused until an internal I2C routerbus can be captured by the source port of the long packet. Alternativelylarge packets are not allowed to be communicated via a source port and asource port attempting to communicate a large packet is disabled.Disabling a source port can also be utilized to prevent a run awayprocess and/or denial of service attacks from preventing other portsfrom accessing an internal bus (e.g., 1215) and effectively bringingdown the ports. In one embodiment of the present invention, an errorrecovery action includes initiating a reset (e.g., resetting a devicecoupled to an I2C port). The present invention is also flexiblyadaptable to reset multiple I2C ports and facilitate implementation anoverall I2C communication network error monitoring and recovery system.

An Inter-Integrated Circuit Router for Supporting IndependentTransmission Rates

Referring now to FIG. 14, a data flow diagram of an inter-integratedcircuit (I2C) router for supporting independent transmission rates, inaccordance with an embodiment of the invention, is shown. For purposesof clarity in describing the present embodiment, I2C router 1400 is usedto illustrate an I2C router capable of supporting coupled devices havingindependent transmission rates. However, it should be appreciated thatother embodiments of invention, such as those described in I2C router570 of FIG. 5, also are be operable to provide independent transmissionrates for coupled devices, and that support of independent transmissionrates is not exclusive to the embodiment described in FIG. 14.

I2C router 1400 comprises internal bus 1402 operable to transmit data ata first transmission rate 1410. In one embodiment, internal bus 1402 isa high-speed bus. In one embodiment, first transmission rate 1410 issubstantially 1.4 megahertz (MHz). Internal bus 1402 comprises portsconfigured for coupling to electrically isolated external buses. Anelectrically isolated bus (e.g., external I2C bus 1424 and external bus1434) can run independently of other buses the electrically isolatedport is coupled to through the port.

I2C router 1400 comprises I2C port 1420 coupled to internal bus 1402.I2C port 1420 comprises a buffer 1422 and is coupled to external I2C bus1424. External I2C bus 1424 is electrically isolated from internal bus1402. External I2C bus 1424 is operable to transmit data at secondtransmission rate 1426. In one embodiment, second transmission rate 1426is substantially 100 kilohertz (kHz). In another embodiment, secondtransmission rate 1426 is substantially 400 kHz. External I2C bus 1424is configured for coupling to external devices or components (e.g., FRUs220, 221 and 222 of FIG. 2).

Buffer 1422 is operable to buffer data transmitted between internal bus1410 and external I2C bus 1424 when first transmission rate 1410 isdifferent than second transmission rate 1426. Buffer 1422 comprises adata cache for temporarily storing data as it is transmitted betweeninternal bus 1410 and external I2C bus 1424. In one embodiment, providedfirst transmission rate 1410 is greater than second transmission rate1424, buffer 1422 is operable to receive data from internal bus 1402 atfirst transmission rate 1410, buffer the data by storing the data it isunable to transmit due to the disparity in transmission rates, andtransmit data across external I2C bus 1424 at second transmission rate1426. In effect, buffer 1422 is operable to slow down data transmissionsuch that a slower link can receive data from a faster link. Asdescribed above, the size buffer 1422 can be configured in accordancewith a variety I2C router 1400 implementations. For example, if I2Crouter 1400 is used in a configuration utilizing IPMI protocol, thecache can be sized as multiples of a packet size of 32 bytes (e.g., 64bytes, 96 bytes, etc.).

In one embodiment, provided first transmission rate 1410 is greater thansecond transmission rate 1424, buffer 1422 is operable to cache datafrom external I2C bus 1424 at second transmission rate 1426 and transmitdata in bursts across internal bus 1402 at first transmission rate 1410.For example, data is received at I2C port 1420 from external bus 1424.Buffer 1422 caches the data. Once enough data has been cached, thecached data is transmitted in bursts across internal bus 1402.Effectively, buffer 1422 operates to achieve higher throughput byreceiving data from a slower link, caching the data, and pumping thedata out the faster link at a faster rate. By bursting the data, fasterbus 1410 can be freed to burst other data independent of bus 1424.

In one embodiment, I2C router 1400 comprises port 1430 coupled tointernal bus 1402. Port 1430 comprises buffer 1432 and is coupled toexternal bus 1434. External bus 1434 is electrically isolated frominternal bus 1402. External bus 1434 is operable to transmit data atthird transmission rate 1436. It should be appreciated that buffer 1432operates in a manner similar to buffer 1422, and is operable to bufferdata when first transmission rate 1410 is different than thirdtransmission rate 1436.

In one embodiment, port 1430 is a second I2C port (e.g., port 560 ofFIG. 5) and external bus 1434 is an I2C bus (e.g., I2C bus 542 of FIG.5). In another embodiment, port 1430 is a high-speed port (e.g.,high-speed port 510 of FIG. 5) and external bus 1434 is an externalhigh-speed bus (e.g., high-speed external bus 540 of FIG. 5).

In one embodiment, first transmission rate 1410 is at least as fast asthe faster of second transmission rate 1426 and third transmission rate1436. In one embodiment, internal bus 1402 is operable to transmit dataat transmission rates less than first transmission rate. In the presentembodiment, it is not necessary to cache data received at port 1420 fromexternal I2C bus 1424 and transmit the data in bursts at firsttransmission rate 1410. Port 1420 can be operable to transmit dataacross internal bus 1410 at second transmission rate. Buffer 1432 isoperable to receive data from internal bus 1402 at second transmissionrate 1426 and transmit data from port 1430 to external bus 1434 at thirdtransmission rate 1436.

In another embodiment, buffer 1422 is operable cache data received fromexternal I2C port 1424 at second transmission rate 1426 and transmit thedata in bursts across internal bus 1402 at first transmission rate 1410.Buffer 1432 is operable to receive the data from internal bus 1402 atfirst transmission rate 1410 and transmit the data to external bus 1434at third transmission rate 1436. Buffer 1432 is operable to cache datareceived from external bus 1434 at third transmission rate 1436 andtransmit the data in bursts across internal bus 1402 at firsttransmission rate 1410.

Referring now to FIGS. 15A–C, flow diagrams illustrating processes 1500,1520 and 1530 for communicating data between ports of aninter-integrated circuit (I2C) router, in accordance with embodiments ofthe invention, are shown. In one embodiment in accordance with theinvention, processes 1500, 1520 and 1530 are performed at an I2C router(e.g., I2C router 1400 of FIG. 4). Although specific blocks aredisclosed in process 1500, such blocks are exemplary. That is, theembodiments in accordance with the invention are well suited toperforming various other blocks or variations of the blocks recited inFIG. 15A. For purposes of clarity, processes 1500, 1520 and 1530 will bedescribed in conjunction with I2C router 1400 of FIG. 14. However, itshould be appreciated that the described embodiments of the presentinvention may be implemented on other I2C routers (e.g., I2C router 570of FIG. 5).

At step 1502 of process 1500, data is received at I2C port 1420 over abus (e.g., internal bus 1402) at first transmission rate 1410. At step1504, provided first transmission rate 1410 is faster than secondtransmission rate 1426 of external I2C bus 1424 coupled to I2C port1420, the data is buffered at buffer 1422. At step 1506, the data istransmitted across external I2C bus 1424 at second transmission rate1426.

At step 1508, second data is received at I2C port 1420 over external I2Cbus 1424 at second transmission rate 1426. At step 1510, provided firsttransmission rate 1410 is faster than second transmission rate 1426, thedata is cached at buffer 1422. At step 1512, the data is transmitted inbursts across internal bus 1402 at first transmission rate 1410.

With reference to FIG. 15B, process 1520 for buffering second data at asecond I2C port is described in accordance with an embodiment of theinvention. In the present embodiment, port 1430 is a second I2C port andexternal bus 1434 is a second external I2C bus.

At step 1522 of process 1520, the second data is received at the secondI2C port over internal bus 1402 at first transmission rate 1410. At step1524, provided first transmission rate 1410 is faster than thirdtransmission rate 1436 of the second external I2C bus, the second datais buffered at buffer 1432. At step 1526, the second data is transmittedacross the second external I2C bus at third transmission rate 1436.

With reference to FIG. 15C, process 1530 for buffering second data at ahigh-speed port is described in accordance with an embodiment of theinvention. In the present embodiment, port 1430 is a high-speed port andexternal bus 1434 is an external high-speed bus.

At step 1532 of process 1530, the second data is received at thehigh-speed port over internal bus 1402 at first transmission rate 1410.At step 1534, provided first transmission rate 1410 is faster than thirdtransmission rate 1436 of the external high-speed bus, the second datais buffered at buffer 1432. At step 1536, the second data is transmittedacross the external high-speed bus at third transmission rate 1436.

Accordingly, various embodiments of the present invention provide an I2Crouter for supporting independent transmission rates. The I2C router cancomprise a high-speed internal bus coupled to a plurality of I2C portsand a high-speed port. Each bus coupled the I2C ports and the high-speedport is electrically isolated, and can operate at different speeds. Bybuffering data at each of the I2C ports, as well as caching the data andpumping it out at fast speeds, a single high-speed bus can be used inthe I2C router to provide greater throughput. Furthermore, by having onehigh-speed port and a plurality of I2C ports, cost can be optimized foruse without compromising performance.

System and Method for Presence Detect and Reset of Devices

Embodiments of the invention provide for detecting a device (e.g., fieldreplaceable unit) coupled to an inter-integrated circuit (I2C) routerand/or resetting the device. Referring now to FIG. 16, a block diagramof an I2C router 1605, in accordance with an embodiment of theinvention, is shown. As depicted in FIG. 16, the I2C router 1605comprises an internal bus 1610, a plurality of bus ports 1615–1630, anda control logic 1640. The internal bus 1610 communicatively couples theplurality of bus ports 1615–1630 and the control logic 1640. Theplurality of bus ports 1615–1630 comprise a high-speed external bus port1615 and a plurality of I2C bus ports 1620–1630 (e.g., sixteen I2C busport interfaces).

The internal bus 1610 comprises a bi-directional high-speedcommunication path. In one embodiment, the high-speed communication pathcomprises a bi-directional parallel bus (e.g., speedway), or the like.In one implementation, the bi-directional parallel bus comprises eightdata lines, two address lines, and five control lines (e.g., read,write, enable, interrupt, and reset). The bandwidth of the internal bus1610 is sufficient to enable high-speed communication between devicescoupled to the I2C router 1605.

The control logic 1640 implements the logic for controllingcommunication on the plurality of bus ports 1615–1630, detecting adevice coupled to one or more of the I2C bus ports 1620–1630, and/orresetting a device on one or more of the I2C bus ports 1620–1630. Thecontrol logic 1640 may be centralized within the I2C router 1605 ordistributed among each of the plurality of bus ports 1615–1630.

The high-speed external bus port 1615 comprises an interface forcontrolling communication between the I2C router 1605 and a high-speedexternal bus. The high-speed external bus comprises a communication pathbetween a coupled external device and the I2C router 1605. Thehigh-speed external bus may be a parallel bus, a high-speed I2C bus(e.g., 1.4 MHz), or the like. Each I2C bus port 1620–1630 comprises aninterface for controlling communication between the I2C router and acorresponding sectioned (e.g., segregated) I2C bus. The I2C buses eachcomprise a communication path between one or more coupled device and theI2C router 1605. The I2C router 1605 receives one or more data packetson any one of the plurality of bus ports 1620–1630 and forwards thepackets to the correct destination bus port 1615–1630. Accordingly, theI2C router 1605 provides for communication between a device coupled tothe high-speed external bus and devices coupled to any one of the I2Cbuses, and/or a device coupled to a first one of the I2C buses andanother device coupled to any other of the I2C buses.

Each I2C bus port 1620–1630 comprises a serial data line (SDA) 1650 anda serial clock line (SCL) 1655 that provide for bi-directionalcommunication. Each I2C bus port 1620 further comprises a presence line1660 and a reset line 1665. In one embodiment, the presence line 1665 isactive low into the bus port 1620 and the reset line 1665 is active highout of the bus port 1620. More specifically, the presence line 1660 isbiased at a high level (e.g., a pull-up resistor to an appropriatesupply voltage) by the I2C bus port 1620 or the control logic 1640. If adevice is coupled to the I2C bus port 1620 and the device isfunctioning, the device drives the presence line 1660 low. If a deviceis not coupled to the I2C bus port 1620 or is not functioning, thepresence line 1660 remains biased high. Thus, the I2C router 1605 isreadily able to determine the presence of an operational device coupledto a given I2C bus port 1620 as a function of the state of thecorresponding presence line 1660.

Similarly, the reset line 1665 is biased at a low level (e.g., apull-down resistor to ground) by the I2C bus port 1620. If a resetcondition is determined by the I2C router, the I2C bus port 1620 or thecontrol logic 1640 drives the reset line 1665 high for a desired (e.g.,pre-defined) period of time. Upon sensing the high state of the resetline 1665, a device coupled to the I2C bus port 1620 will perform areset process.

Referring now to FIG. 17A, a flow diagram of a method of detecting thepresence of a device (e.g., field replaceable unit) coupled to aninter-integrated circuit (I2C) router, in accordance with an embodimentof the invention, is shown. As depicted in FIG. 17A, the methodcomprises biasing the presence line at a first state, at 1710. In oneimplementation, the presence line is biased by pulling the presence linehigh (e.g., a pull-up resistor coupled to an appropriate power supply).

At 1715, the presence line is driven to a second state by a functioningdevice coupled to the presence line. In one implementation, thefunctional device drives the presence line low. Alternatively at 1720,if a device is not connected to the presence line or the device is notfunctioning, the presence line remains at the first state.

At 1725, the I2C router senses the presence line. If the presence lineis at the second state, the I2C router determines that a device ispresent and/or functional, at 1730. If the presence line is at the firststate, the I2C router determines that a device is not connected or thatthe device is not functional, at 1735. Upon determining if a device isor is not present and/or function, the method returns to 1725.

Referring now to FIG. 17B, a flow diagram of a method of resetting adevice (e.g., field replaceable unit) coupled to an inter-integratedcircuit (I2C) router, in accordance with an embodiment of the invention,is shown. As depicted in FIG. 17B, the method comprises biasing thereset line at a first state, at 1750. In one implementation, the resetline is biased by pulling the reset line low (e.g., a pull-down resistorcoupled to a ground).

At 1755, the I2C router determines if a reset condition exists. In oneimplementation, a reset condition comprises a reported error asdescribed above with respect to FIGS. 13 and 14.

At 1760, the reset line is driven to a second state for a desired period(e.g., pre-defined) of time if a reset condition exists. In oneimplementation, the I2C router drives the reset line high if a resetcondition exists.

At 1765, a device coupled to the reset line executes a reset processwhen the reset line is driven low. If no reset condition is determinedor after the reset line is driven low in response to a reset conditionthe method returns to step 1755.

In another embodiment the function of the presence and reset areimplemented utilizing a single line. Furthermore, embodiments of theinvention may implement the method of detecting the presence of a deviceonly, the method of resetting a device upon determination of a resetcondition only, or both the method of detecting the presence of a deviceand resetting the same device or another device.

Accordingly, embodiments of the invention are advantageous in that adevice that is not functioning can be reset. Embodiments of theinvention are also advantageous in that a device which has taken overcontrol of the I2C bus can be reset. Upon resetting the device, the I2Cbus is released. Embodiments of the invention are also advantageous inthat a non-responsive device can be detected. The ability to detectand/or reset a device coupled to the I2C router readily improves therobustness of the system.

System and Method for Analysis of I2C Router

Embodiments of the invention provide for readily analyzing and debuggingan inter-integrated circuit (I2C) router. Referring to FIG. 18, a blockdiagram of an I2C router 1805, in accordance with an embodiment of theinvention, is shown. As depicted in FIG. 18, the I2C router 1805comprises an internal bus 1810, a plurality of bus ports 1815–1830, acontrol logic 1840, and a debug connector 1865. The internal bus 1810communicatively couples the plurality of bus ports 1815–1830 and thecontrol logic 1840. The plurality of bus ports 1815–1830 comprise ahigh-speed external bus port 1815 and a plurality of I2C bus ports1820-1830 (e.g., sixteen I2C bus ports).

The internal bus 1810 comprises a bi-direction high-speed communicationpath and a plurality of debug lines. In one embodiment, the high-speedcommunication path comprises a bi-direction parallel bus (e.g.,speedway), or the like. In one implementation, the bi-direction parallelbus comprises eight data lines, two address lines, five control lines(e.g., read, write, enable, interrupt and reset) and four generalpurpose input/output lines. In one embodiment, the general purposeinput/output lines are designated as debug lines 1880 (e.g., debug(0:3)). The bandwidth of the internal bus 1810 is sufficient to enablehigh-speed communication between devices (e.g., field replaceable units)coupled to the I2C router 1805.

The control logic 1840 implements the logic for controllingcommunication on the plurality of port interfaces 1815–1830. The controllogic 1840 may be centralized within the I2C router 1805 or distributedamong each of the plurality of bus ports 1815–1830.

The high-speed external bus port interface 1815 comprises an interfacefor controlling communication between the I2C router 1805 and ahigh-speed external bus 1845. The high-speed external bus 1845 comprisesa communication path between an coupled external device and the I2Crouter 1805. The high-speed external bus 1845 may be a parallel bus, ahigh-speed I2C bus (e.g., 1.4 MHz), or the like. Each I2C bus port 1820comprises an interface for controlling communication between the I2Crouter 1805 and a corresponding sectioned (e.g., segmented) I2C bus1855–1860. Each I2C bus port 1820–1830 comprises a serial data line(SDA) 1860 and a serial clock lines (SDL) 1865 that provide forbi-directional communication. The I2C buses each comprise acommunication path between one or more coupled devices and the I2Crouter 1805. The I2C router 1805 receives one or more packets on any oneof the plurality of bus ports 1815–1830 and forwards the packets to thecorrect destination bus port 1815–1830. Accordingly, the I2C router 1805provides for communication between a device coupled to the high-speedexternal bus 1815 and devices coupled to any one of the I2C buses1820–1830, and/or a device coupled to a first one of the I2C buses1820–1830 and another device coupled to any other of the I2C buses1820–1830.

The debug connector 1865 provides for coupling a logic analyzer 1885 orthe like, to one or more of a plurality of analysis lines 1870–1880. Thedebug connector 1865 may also provide for coupling the logic analyzer1885 to the internal bus 1810. The plurality of analysis lines 1870–1880comprise the plurality of debug lines (e.g., debug (0:3)) 1880, one ormore control logic analysis lines 1870, and/or one or more high-speedexternal bus port analysis lines 1875. Thus, the debug connector 1865allows for the trapping and analysis, in a standard manner, of trafficpassing through the I2C router 1805 to any bus port 1815–1830. Inaddition, signals on the analysis lines 1870–1880 may be generated bydebug firmware for setting breakpoints and traps. The I2C router 1805,comprising the internal bus (e.g., parallel bus) 1810 and debugconnector 1865, readily allow isolation of traffic to and/or from anindividual bus port 1815–1830 and ready analysis of data on a byte bybyte bases. Therefore, generation and control of complex stateconditions necessary for analysis of serial signals are not necessary.

Referring now to FIG. 19, a flow diagram of a method of analyzingtraffic in an inter-integrated (I2C) router, in accordance with anembodiment of the invention, is shown. As depicted in FIG. 19, themethod comprises transmitting a first set of signals on a plurality ofdebug lines coupled to one or more bus ports, at 1910. Transmittingcomprises sending and/or receiving signals. In an exemplaryimplementation, one or more signals are transmitted on the debug linesto set the state of one or more elements of one or more bus ports and/orto determine the state of one or more elements of one or more of the busports.

The method may further comprise transmitting a second set of signals onone or more control logic analysis lines, at 1915. In an exemplaryimplementation, one or more signals are transmitted on the one or morecontrol logic analysis lines to set the state of one or more elements ofthe control logic and/or to determine the state of one or more elementsof the control logic. The method may further comprise transmitting athird set of signals on one or more bus port analysis lines, at 1920. Inan exemplary implementation, one or more signals are transmitted on theone or more bus port analysis lines to set the state of one or moreelements of the bus ports and/or to determine the state of one or moreelements of the bus ports.

The method may further comprise transmitting data packets on one or morebus ports, at 1925. The bus ports may comprise a high-speed bus portand/or a plurality of I2C bus ports. Furthermore, one or more ofelements 1910–1925 of the method may be performed individually, incombination with each other, sequentially, in parallel with each other,and/or any combination thereof.

Accordingly, embodiments of the invention advantageously provide forreadily analyzing and debugging communications passing through I2Crouters. Embodiments of the invention advantageously allow for settingbreakpoints and traps. Embodiments of the invention also advantageouslyallow readily detecting destination and source addresses of data packettraffic.

The foregoing descriptions of specific embodiments of the presentinvention have been presented for purposes of illustration anddescription. They are not intended to be exhaustive or to limit theinvention to the precise forms disclosed, and obviously manymodifications and variations are possible in light of the aboveteaching. The embodiments were chosen and described in order to bestexplain the principles of the invention and its practical application,to thereby enable others skilled in the art to best utilize theinvention and various embodiments with various modifications as aresuited to the particular use contemplated. It is intended that the scopeof the invention be defined by the claims appended hereto and theirequivalents.

1. A system for detecting a device coupled to an inter-integratedcircuit router comprising: a first inter-integrated circuit bus port; apresence line coupled to said first inter-integrated circuit bus port;and a control logic coupled to said first inter-integrated circuit busport, for determining if said device is coupled to said inter-integratedcircuit router as a function of a state of said presence line.
 2. Thesystem for detecting a device coupled to an inter-integrated circuitrouter according to claim 1, further comprising: a high-speed externalbus port; and an internal bus for communicating data packets betweensaid first inter-integrated circuit bus port and said high-speedexternal bus port.
 3. The system for detecting a device coupled to aninter-integrated circuit router according to claim 1, further comprisinga second inter-integrated circuit bus port, wherein a firstinter-integrated circuit bus coupled to said first inter-integratedcircuit bus port is separated from a second inter-integrated circuit buscoupled to said second inter-integrated circuit bus port.
 4. The systemfor detecting a device coupled to an inter-integrated circuit routeraccording to claim 1, wherein: said presence line is biased at a firststate; and said determining if said device is coupled to saidinter-integrated circuit router comprises determining if said presenceline is driven to a second state.
 5. The system for detecting a devicecoupled to an inter-integrated circuit router according to claim 1,further comprising: a reset line coupled to said first inter-integratedcircuit bus port; and a control logic coupled to said firstinter-inter-integrated circuit bus port, for determining if a resetcondition exists and for changing a state of said reset line if saidreset condition exists.
 6. The system for detecting a device coupled toan inter-integrated circuit router according to claim 5, wherein saidreset line is biased at a second state; and said changing a state ofsaid reset line comprises driving said reset line to a first state.